package com.byb.server.service.dto;


import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;
import javax.persistence.Lob;

/**
 * A DTO for the IllnessInfo entity.
 */
public class IllnessInfoDTO implements Serializable {

    private Long id;

    private String illnessName;

    private String incidence;

    @Lob
    private String diseaseDefinition;

    @Lob
    private String susceptiblePopulation;

    @Lob
    private String medicalLevel;

    @Lob
    private String compensableCircumstances;

    @Lob
    private String unCompensableCircumstances;

    private Long typeOfCaseId;

    private String typeOfCaseTypeName;

    private Long productId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIllnessName() {
        return illnessName;
    }

    public void setIllnessName(String illnessName) {
        this.illnessName = illnessName;
    }

    public String getIncidence() {
        return incidence;
    }

    public void setIncidence(String incidence) {
        this.incidence = incidence;
    }

    public String getDiseaseDefinition() {
        return diseaseDefinition;
    }

    public void setDiseaseDefinition(String diseaseDefinition) {
        this.diseaseDefinition = diseaseDefinition;
    }

    public String getSusceptiblePopulation() {
        return susceptiblePopulation;
    }

    public void setSusceptiblePopulation(String susceptiblePopulation) {
        this.susceptiblePopulation = susceptiblePopulation;
    }

    public String getMedicalLevel() {
        return medicalLevel;
    }

    public void setMedicalLevel(String medicalLevel) {
        this.medicalLevel = medicalLevel;
    }

    public String getCompensableCircumstances() {
        return compensableCircumstances;
    }

    public void setCompensableCircumstances(String compensableCircumstances) {
        this.compensableCircumstances = compensableCircumstances;
    }

    public String getUnCompensableCircumstances() {
        return unCompensableCircumstances;
    }

    public void setUnCompensableCircumstances(String unCompensableCircumstances) {
        this.unCompensableCircumstances = unCompensableCircumstances;
    }

    public Long getTypeOfCaseId() {
        return typeOfCaseId;
    }

    public void setTypeOfCaseId(Long typeOfCaseId) {
        this.typeOfCaseId = typeOfCaseId;
    }

    public String getTypeOfCaseTypeName() {
        return typeOfCaseTypeName;
    }

    public void setTypeOfCaseTypeName(String typeOfCaseTypeName) {
        this.typeOfCaseTypeName = typeOfCaseTypeName;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        IllnessInfoDTO illnessInfoDTO = (IllnessInfoDTO) o;
        if(illnessInfoDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), illnessInfoDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "IllnessInfoDTO{" +
            "id=" + getId() +
            ", illnessName='" + getIllnessName() + "'" +
            ", incidence='" + getIncidence() + "'" +
            ", diseaseDefinition='" + getDiseaseDefinition() + "'" +
            ", susceptiblePopulation='" + getSusceptiblePopulation() + "'" +
            ", medicalLevel='" + getMedicalLevel() + "'" +
            ", compensableCircumstances='" + getCompensableCircumstances() + "'" +
            ", unCompensableCircumstances='" + getUnCompensableCircumstances() + "'" +
            "}";
    }
}
